package com.zqx.saller.params;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zqx.saller.sign.SignText;
import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单请求参数
 */
@Slf4j
public class OrderParam implements SignText {

    private String chanId;

    private String chanUserId;

    private String productId;

    private BigDecimal amount;

    private String outerOrderId;

    private String meno;

    @JsonFormat(pattern = "YYYY-MM-DD HH:mm:ss")
    private Date createAt;

    @Override
    public String toString() {
        return "OrderParam{" +
                "chanId='" + chanId + '\'' +
                ", chanUserId='" + chanUserId + '\'' +
                ", productId='" + productId + '\'' +
                ", amount=" + amount +
                ", outerOrderId='" + outerOrderId + '\'' +
                ", meno='" + meno + '\'' +
                ", createAt=" + createAt +
                '}';
    }
}
